package controllers

import (
	"github.com/gin-gonic/gin"
	"my.com/mygo/services/system"
)

// RegisterSystem 处理系统方面的APIs
func RegisterSystem(router *gin.RouterGroup) {

	router.POST("/shutdown", shutdown)
}

// shutdown 关闭服务
// @Summary 关闭服务
// @Tags system.tools
// @Accept application/json
// @Produce application/json
// @Success 200 {object} object
// @Router /shutdown [post]
func shutdown(c *gin.Context) {
	system.Shutdown(c)
}
